package com.huang.decorator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p></p>
 *
 * @author aneng huang
 * @since 2020-10-28 16:58:34
 */
public class YellowShapeDecorator extends ShapeDecorator {

    private static final Logger logger = LoggerFactory.getLogger(YellowShapeDecorator.class);

    public YellowShapeDecorator(Shape shapeDecorator) {
        super(shapeDecorator);
    }

    @Override
    public void draw() {
        super.draw();
        setYellowShape();
    }

    private void setYellowShape() {
        logger.info("黄色的装饰者增强方法！");
        logger.info("设置黄色的形状！");
    }
}
